from google.appengine.ext import db
class ShortenUrl(db.Model):
	long_url = db.StringProperty()
	refferals = db.IntegerProperty() 
	t_created = db.DateTimeProperty(auto_now_add=True)
	@staticmethod
	def _get_key(key = None):
		"""Constructs a datastore key for a Guestbook entity with guestbook_name."""
		return 'ddd'
		#return db.Key.from_path('ShortenUrl', key or 'shortenurl')
		
	@staticmethod 
	def _get_or_insert(**kwds):
	#	for key in kwargs:
	#		print "another keyword arg: %s: %s" % (key, kwargs[key])
		return ShortenUrl.get_or_insert(ShortenUrl._get_key(), **kwds)

	

